<div class="ratings index">
	<h2><?php echo __d('ratings','Ratings');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('rating_group_id');?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('status');?></th>			
			<th class="actions">
				<?php 
				echo $this->Html->link(__d('ratings','Groups'), array('controller'=>'rating_groups','action' => 'index'),array('class'=>'action-left')); 
				echo $this->Html->link(__d('ratings','New Rating'), array('action' => 'add'),array('class'=>'action-right')); 
			?></th>
	</tr>
	<?php
	foreach ($ratings as $rating): ?>
	<tr>
		<td><?php echo h($rating['Rating']['id']); ?>&nbsp;</td>
		<td><?php echo $rating_groups[$rating['Rating']['rating_group_id']]; ?>&nbsp;</td>
		<td><?php echo h($rating['Rating']['name']); ?>&nbsp;</td>
		<td><?php echo h($rating['Rating']['status']); ?>&nbsp;</td>		
		<td class="actions">
			<?php 
				echo $this->Html->link(__d('ratings','View'), array('action' => 'view', $rating['Rating']['id']),array('class'=>'action-left'));
				echo $this->Html->link(__d('ratings','Edit'), array('action' => 'edit', $rating['Rating']['id']),array('class'=>'action-inner'));
				echo $this->Form->postLink(__d('ratings','Delete'), array('action' => 'delete', $rating['Rating']['id']), array('style'=>'margin-right: 5px;','class'=>'action-right'), __d('ratings','Are you sure you want to delete # %s?', $rating['Rating']['id'])); 
			?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __d('ratings','Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __d('ratings','previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__d('ratings','next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<?php echo $this->element('/menu/left')?>